﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Elasticsearch.Net;
using Nest;
namespace ES.EsEntity
{
    [ElasticsearchType(IdProperty = "id", Name = "policyinfo")]
    public class PolicyInfo
    {
        [Number(NumberType.Integer,Name = "id",Index =true)]
        public int id { get; set; }
        [Text(Name = "Title", Index = true,Analyzer = "ik_smart")]
        public string Title { get; set; }

        [Text(Name = "Desc", Index = true, Analyzer = "ik_max_word")]
        public string Desc { get; set; }
        [Text(Name = "Contents", Index = true, Analyzer = "ik_smart")]
        public string Contents { get; set; }
    }
}
